<ion-view view-title="发票一览" class = "set_receipt">

  <ion-content scroll="false">

	<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
		<!--描述：下拉刷新-->
		<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
		
		    <div class="item item-divider">
			 	发票一览
			 	<span class="right-zhang positive" on-tap="onshow_add()">新增+</span>
			 </div>
		
		<div class="list list-borderless" ng-repeat="receipt in datas">
			 <li class="item padding-5">
			 	<p>名称：{{receipt.company_name}} <span class="right-zhang bian margin-left-10-my positive" on-tap="onshow_add(receipt.id)">编辑</span>
			 		<span class="right-zhang assertive bian" on-tap="delete_invoice(receipt.id)">删除</span> </p>
			 	<p class="padding-5">税号：{{receipt.tax_no}} <span class="right-zhang stable-bg bian" ng-show="receipt.def_invoice">取消默认</span>
			 		<span class="right-zhang stable-bg bian" ng-show="!receipt.def_invoice" on-tap="set_default(receipt.id)">设为默认地址</span></p>
			 		
			 
			 	
			 </li>
		</div>
		
		<!--描述：当用户到达页脚或页脚附近时-->
		<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
	</ion-scroll>
					
 </ion-content>
</ion-view>